define(["jquery","template","bld/template/classify/programEdit.tpl"],function($,template,tpl){
    var ui = {};

    var drawStage = function(data) {
        return template("programEdit_stage", data);
    }
    var drawStageForm = function(data) {
        return template("programEdit_stageForm", data);
    }
    var drawStageCourse = function(data) {
        return template("programEdit_stageCourse", data);
    }
    var drawSchemeClassAll = function(data) {
        return template("programEdit_schemeClassAll", data);
    }
    var drawQueryAllCourse = function(data) {
        return template("programEdit_queryAllCourse", data);
    }
    var drawAddCourse = function(data) {
        return template("programEdit_addCourse", data);
    }
    ui.stage = function(options) {
        $("#" + options.id).html(tpl.stage());
        var h = drawStage(options);
        $("#" + options.id).html(h);
    }
    ui.stageForm = function(options) {
        options.dom.html(tpl.stageForm());
        var h = drawStageForm(options);
        options.dom.html(h);
    }
    ui.stageCourse = function(options) {
        $("#" + options.id).html(tpl.stageCourse());
        var h = drawStageCourse(options);
        $("#" + options.id).html(h);
    }
    ui.schemeClassAll = function(options) {
        $("#" + options.id).html(tpl.schemeClassAll());
        var h = drawSchemeClassAll(options);
        $("#" + options.id).html(h);
    }
    ui.queryAllCourse = function(options) {
        $("#" + options.id).html(tpl.queryAllCourse());
        var h = drawQueryAllCourse(options);
        $("#" + options.id).html(h);
    }
    ui.addCourse = function(options) {
        options.dom.html(tpl.addCourse());
        var h = drawAddCourse(options);
        options.dom.html(h);
    }
    
    return ui;
});